//
//  PrivateTaxCalcDetailViewController.h
//  PrivateTaxCalculator
//
//  Created by albert ma on 12/21/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "PrivateTaxCalculator.h"

@interface PrivateTaxCalcDetailViewController : UIViewController<UIPickerViewDelegate, UIPickerViewDataSource, CLLocationManagerDelegate>
{
    UITextField *currentTextField_;
    UIPickerView *plackPicker_;

    PrivateTaxCalculator* privateTaxCalculator_;
    NSMutableArray* cityArray;
}
@property (retain, nonatomic) IBOutlet UIControl *belowHalfView;
@property (retain, nonatomic) IBOutlet UIView *locationActivityIndicator;

- (IBAction)gotoShareView:(id)sender;
- (IBAction)backButtonClicked:(id)sender;
- (IBAction)touchScreen:(id)sender;
- (void)loadCityData;
- (IBAction)calculateInsurance:(id)sender;
- (void)stopUpdatingLocations:(NSString *)state;
@property (retain, nonatomic) IBOutlet UITextField *pensionAmountTextField;
@property (retain, nonatomic) IBOutlet UITextField *pensionRateTextField;
@property (retain, nonatomic) IBOutlet UITextField *medRateTextField;
@property (retain, nonatomic) IBOutlet UITextField *unemployRateTextField;
@property (retain, nonatomic) IBOutlet UITextField *placeTextField;
@property (retain, nonatomic) IBOutlet UITextField *insuranceRateTextField;
@property (retain, nonatomic) IBOutlet UITextField *insuranceAmountTextField;
@property (retain, nonatomic) IBOutlet UITextField *insuranceBaseTextField;
@property (retain, nonatomic) IBOutlet UITextField *insuranceBaseLimitTextField;
@property (retain, nonatomic) IBOutlet UITextField *medAmountTextField;
@property (retain, nonatomic) IBOutlet UITextField *unemployAmountTextField;
@property (retain, nonatomic) IBOutlet UITextField *houseAmountTextField;
@property (retain, nonatomic) IBOutlet UISegmentedControl *pensionSwitcher;
@property (retain, nonatomic) IBOutlet UISegmentedControl *medSwitcher;
@property (retain, nonatomic) IBOutlet UISegmentedControl *unemploySwitcher;
@property (retain, nonatomic) IBOutlet UISegmentedControl *houseSwitcher;

@property (retain, nonatomic) IBOutlet UITextField *houseRateTextField;
@property (retain, nonatomic) CLLocationManager *locationManager;
@property (retain, nonatomic) PrivateTaxCalculator *privateTaxCalculator;
@property (retain, nonatomic) NSNumber* rawIncome;
@property (retain, nonatomic) NSNumber* totalInsurance;
@end
